/**
 * Title:		T13OlympicParallel.java
 * Description: Backend Test program for Olympic parallel
 * 
 * @version		1.0 May 2009
 * @author		Hidemitsu Izawa (hi2136@columbia.edu)
 */
import kfrog.Const;
import kfrog.Frog;
import kfrog.Pond;

public class T13OlympicParallel {
	public static void main(String args[]){
		/** pond */
		Pond pond = new Pond(720,480);
		pond.setPondColor("WHITE");
		/** frog1 */
		Frog frog1 = new Frog(pond,1);
		frog1.speed(5);
		frog1.frogcolor(Const.BLUE);
		frog1.move(160, 200);
		frog1.startdraw();
		frog1.sleep(1000);//sleep
		frog1.leftcurve(80, 360);
		frog1.stopdraw();
		Thread FROG1 = new Thread(frog1);
		FROG1.start();
		/** frog2 */
		Frog frog2 = new Frog(pond,2);
		frog2.speed(5);
		frog2.frogcolor(Const.BLACK);
		frog2.move(360, 200);
		frog2.startdraw();
		frog2.sleep(2000);//sleep
		frog2.leftcurve(80, 360);
		frog2.stopdraw();
		Thread FROG2 = new Thread(frog2);
		FROG2.start();
		/** frog3 */
		Frog frog3 = new Frog(pond,3);
		frog3.speed(5);
		frog3.frogcolor(Const.RED);
		frog3.move(560, 200);
		frog3.startdraw();
		frog3.sleep(3000);//sleep
		frog3.leftcurve(80, 360);
		frog3.stopdraw();
		Thread FROG3 = new Thread(frog3);
		FROG3.start();
		/** frog4 */
		Frog frog4 = new Frog(pond,4);
		frog4.speed(5);
		frog4.frogcolor(Const.YELLOW);
		frog4.move(260, 120);
		frog4.startdraw();
		frog4.sleep(4000);//sleep
		frog4.leftcurve(80, 360);
		frog4.stopdraw();
		Thread FROG4 = new Thread(frog4);
		FROG4.start();
		/** frog5 */
		Frog frog5 = new Frog(pond,5);
		frog5.speed(5);
		frog5.frogcolor(Const.GREEN);
		frog5.move(460, 120);
		frog5.startdraw();
		frog5.sleep(5000);//sleep
		frog5.leftcurve(80, 360);
		frog5.stopdraw();
		Thread FROG5 = new Thread(frog5);
		FROG5.start();
	}
}
